#include "common.hpp"

int main()
{
    NamedPipe np;
    np.Create();
    Shm shm(CREATOR,PATH_NAME,PRO_ID);
    char* ptr = (char*)shm.Ptr();

    while(true)
    {
        if(np.Wait())
        {
            printf("%s\n",ptr);
            sleep(1);
        }   
    }

    return 0;

}